package practice;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import private1.Day;

import java.sql.SQLOutput;
import java.util.Scanner;

public class Person {
    private String name;//姓名
    private String sex;//性别
    private String num;//账号

    private int height;//身高
    private int weight;//体重
    private Day brithdate;//生日字段


    Person(String name,String sex,String num,int height,int weight,Day brithdate){
        this.name=name;
        this.sex=sex;
        this.num=num;
        this.height=height;
        this.weight=weight;
        this.brithdate=new Day(brithdate);
    }
    public String getName(){
        return name;
    }
    public String getSex(){
        return sex;
    }
    public String getNum(){
        return num;
    }

    public int getHeight() {
        return height;
    }
    public int getWeight() {
        return weight;
    }
   public Day getBrithdate(){
        return new Day(brithdate);
    }
//    public String toString(){
//        String wd[]={"日","一","二","三","四","五","六",};
//        return String.format("04%d年02%d月02日(%s)\n")
//    }


//    public void setName(String name){
//        this.name=name;
//    }
//    public void setSex(String sex){
//        this.sex=sex;
//    }
//    public void setNum(String num){
//        this.num=num;
//    }
//    public void setAge(int age){
//        this.age=age;
//    }
//    public void setHeight(int height) {
//        this.height = height;
//    }
//    public void setWeight(int weight) {
//        this.weight = weight;
//    }
}



class PersonTester{
    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        Day d=new Day(1997,5,26);
        Day x=new Day(1998,6,26);

        Person you1=new Person("张淳柏","man","888888",21,175,d);
        Person you2=new Person("李加刚","man","999999",20,174,x);

//        System.out.println("请输入姓名：");
//        String name=stdIn.next();
//        you1.setName(name);
//        System.out.println("请输入身高：");
//        int height=stdIn.nextInt();
//        you1.setHeight(height);
//        System.out.println("请输入体重：");
//        int weight=stdIn.nextInt();
//        you1.setWeight(weight);


        System.out.println("人名："+you1.getName());
        System.out.println("性别："+you1.getSex());
        System.out.println("体重："+you1.getWeight()+"公斤");
      Day y= you1.getBrithdate();
        System.out.println("出生日期："+y);
        System.out.println();
        System.out.println("人名："+you2.getName());
        System.out.println("性别："+you2.getSex());
        System.out.println("体重："+you2.getWeight()+"公斤");
        System.out.println("出生日期："+you2.getBrithdate());

    }
}